<?php
	if(count($this->Khoahoc) > 0){ 
?>
	<table class="tableTeam1" id="tableListKhoahoc">
		<tr>
			<th>Tên khóa học</th>
			<th style="text-align: center;">
				<a href="javascript:void(0)" onclick="chonKhoahocAll()">Chọn tất cả</a>
			</th>
		</tr>
		<?php
		foreach ($this->Khoahoc AS $key => $val){
			$id 	= $val['id'];
			$name 	= $val['name'];
		?>
		<tr id="<?php echo $id;?>">
			<td class="name" id="name"><?php echo $name;?></td>
			<td align="center"><a href="javascript:void(0)" onclick="chonKhoahoc(<?php echo $id;?>, '<?php echo $name;?>')">Chọn</a></td>
		</tr>
		<?php
		} 
		?>
	</table>
	<div class="phanTrangAjax">
		<?php
			$currentUrl = $this->baseUrl($this->currentController . '/ajax-load-khoahoc');
			echo $this->paginationControl($this->paginator,'Sliding','pagination-ajax.phtml',array('currentUrl'=>$currentUrl, 'options' => array('idLoad' => 'loadKhoahoc'))); 
		?>
	</div>
	
<?php
	}else{
		echo '<div class="note">Không tìm thấy dữ liệu nào</div>';
	}
?>